<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<jsp:useBean id="u2" class="javabean.data.User" scope="page"/>
<html>
  <head>   
    <title></title>
  </head>  
  <body>
  	<jsp:setProperty name="u2" property="username" value="梨花"/>
    <jsp:setProperty name="u2" property="password" value="456"/>
    <p>姓名：<jsp:getProperty name="u2" property="username"/></p>
    <p>密码：<jsp:getProperty name="u2" property="password"/></p> 
  </body>
</html>


